import Vue from 'vue';
// import { Modal } from 'vxe-table';
/* import {} from '@/types' */
/*
 * props
 * config :N_oProgressBar.I_config
 */

export namespace N_oProgressBar {
  export class T_modelCf {
    title: string;

    // modal的宽高  默认 宽560px 高自适应
    size?: Array<number>;

    // 是否显示遮罩层
    mask?: boolean;

    tapClose?: boolean;

    // 显示底部 默认值false
    showFooter?: boolean;

    // ok?: string;

    constructor() {
      this.title = '';
      this.size = [560];
      this.mask = false;
      this.showFooter = false;
      this.tapClose = false;
      // this.ok = '确定';
    }
  }

  export interface I_progressStep {
    name: string;
    status: 'success' | 'error' | 'processing' | 'waiting';
    description?: string;
  }
  export interface I_progressConf {
    percentage: number;
    steps: Array<I_progressStep>;
  }
  export interface I_modelCf extends T_modelCf {}

  export interface I_config {
    modelCf: I_modelCf;
    config: I_progressConf;
    autoClose?: boolean;
  }
  export interface oProgressBar extends Vue {}
}
